x2apic: Clean up send_IPI_mask_x2apic() and add a memory barrier.
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 25 Sep 2008 09:03:04 +0000 (10:03 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 25 Sep 2008 09:03:04 +0000 (10:03 +0100)
commit944e533ffb53ce4a11ee59603e315d7644b3a0c7
treea36e085f7119cb25bdf795c8990ac714bbb769eb
parent7ac3a03d8b7f03071b3d1c8bf522270392360439
x2apic: Clean up send_IPI_mask_x2apic() and add a memory barrier.

The barrier is required to prevent the WRMSR from executing before the
processor has written synchronising data to be received by remote
CPUs.

At the same time remove needless wmb() from on_selected_cpus(). We now
assume send_IPI_mask() is a sufficient compiler and CPU memory
barrier.

Original patch by Kevin Tian <kevin.tian@intel.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen/arch/x86/genapic/x2apic.c
xen/arch/x86/smp.c